﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;
using ElectronicCommerce.Framework.Collections;
using ElectronicCommerce.Framework.Configuration.Attributes;

namespace ElectronicCommerce.Framework.ServiceModel.Configuration
{
    /// <summary>
    /// 服务器配置
    /// </summary>
    [ConfigFile("ServiceModel/Server.config")]
    [XmlRoot("serviceServerConfig", Namespace = NamespaceConst.NAMESPACE)]
    public class ServiceServerConfig
    {
        private KeyedCollection<ServiceServerElement> server;

        /// <summary>
        /// 服务器配置集合
        /// </summary>
        [XmlElement("server")]
        public KeyedCollection<ServiceServerElement> Servers
        {
            get { return server; }
            set { server = value; }
        }
    }
}
